function page(type) {
    let pageNum = $("#pageNum").val();
    pageNum = pageNum == "" ? 1 : parseInt(pageNum);
    let pageSize = $("#pageSize").val();
    pageSize = pageSize == "" ? 10 : parseInt(pageSize);
    let count = $("#count").html();
    count = count == "" ? 0 : parseInt(count);
    let countPage = Math.ceil(count / pageSize);
    //1.有余，countPage+1
    //2.刚好，countPage
    switch (type) {
        case "go":
            break;
        case "first":
            pageNum = 1;
            break;
        case "last":
            if (pageNum <= 1) {
                pageNum = 1;
            } else {
                --pageNum;
            }
            break;
        case "next":
            if (pageNum >= countPage) {
                pageNum = countPage;
            } else {
                ++pageNum;
            }
            break;
        case "end":
            pageNum = countPage;
            break;
    }
    $("#pageNum").val(pageNum);
    $("#pageSize").val(pageSize);
    findAll();
}